using System;
using FBGraph.Models;

namespace FBGraph.Controllers.Connections.Users
{
    /// <summary>The updates in this user's inbox. Requires the read_mailbox permission</summary>
    public partial class UpdatesController : FBGraphController, IFBGraphConnectionController<MailboxItem>
    {
        /// <summary>Initializes an instance of <see cref="UpdatesController" />.</summary>
        public UpdatesController(IFBGraphContext context)
            : base(context)
        {
        }
        
        /// <summary>Gets the name of the connection the <see cref="UpdatesController" /> handles requests for.</summary>
        String IFBGraphConnectionController<MailboxItem>.ConnectionName
        {
            get
            {
                return "updates";
            }
        }
    }
}